import Vue from 'vue'
import Router from 'vue-router'
import Navi from '@/components/Navi'
import Page from "@/components/Page"
import Tag from '@/components/TagManage/Label'
import Platform from '@/components/Platform/Platform'
import User from '@/components/User'
import Group from '@/components/Profile/Group'
import Item from '@/components/Profile/Item'
import Rule from '@/components/AntiPoor/RuleManage'
import Alert from '@/components/AntiPoor/Alert'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Page',
      component: Page,
      children: [
        {
          path:"Tag",
          name:"sub4",
          component: Tag
        },
        {
          path:"Platform",
          name:"sub5",
          component: Platform
        },
        {
          path:"User",
          name:"sub6",
          component: User
        },
        {
          path:"Profile/Item",
          name:"sub3-1",
          component: Item
        },
        {
          path:"Profile/Group",
          name:"sub3-2",
          component: Group
        },
        {
          path:"AntiPoor/rule",
          name:"sub1-1",
          component: Rule
        },
        {
          path:"AntiPoor/alert",
          name:"sub1-2",
          component: Alert
        },
      ]
    }
  ]
})
